<?php
//会员模型
class MemberModel extends Model{
	
	//自动验证
	protected $_validate = array(
			 array('user_account','require','会员账号必须'),
       array('password','require','密码必须',0,'',1),
       array('nickname','require','昵称必须'),
       array('rpassword','password','两次密码不一致',0,'confirm'), 
       array('user_account','','帐号已经存在',0,'unique',1),
       array('email','email','邮箱格式错误'),
       array('username','checkAccount','账号己存在',0,'callback',2),
	);
	//字段映射
	protected $_map=array(
			'username'=>'user_account',
			'point' => 'user_point',
	) ;
	
	
}



?>